<extend name="Index/index" />
<block name="center">
<div class="col-lg-12" style="padding-left:0px;padding-right:0px;">
    <div class="portlet box portlet-blue" >
        <div class="portlet-header">
            <div class="caption">修改订单</div>
            <!-- <div class="tools"><i class="fa fa-chevron-up"></i><i class="fa fa-cog" data-target="#modal-config" data-toggle="modal"></i><i class="fa fa-refresh"></i><i class="fa fa-times"></i>
            </div> -->
        </div>
        <div class="portlet-body">
            <form class="form-horizontal" role="form" action="{:U('Admin/Forms/Update')}" method="post">
                <div class="row">
                    <div class="col-md-6" style="width:700px">
                        <div class="form-group">
                            <label class="col-md-3 control-label" >用户名称</label>
                            <div class="col-md-9">
                                <input type="text" class="form-control" value="{$info['username']}" name="username" id="username" disabled="disabled">
                                <input type="hidden" value="{$info['id']}" name="id" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label" >订单总价</label>
                            <div class="col-md-9">
                                <input type="text" class="form-control" value="{$info['fprice']}" name="fprice" id="fprice" disabled="disabled">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label" >订单生成时间</label>
                            <div class="col-md-9">
                                <input type="text" class="form-control" value="{:date('Y-m-d H:i:s',$info['ftime'])}" name="ftime" id="ftime" disabled="disabled" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label" >订单号</label>
                            <div class="col-md-9">
                                <input type="text" class="form-control" value="{$info['formnumber']}" name="formnumber" id="formnumber" disabled="disabled">
                            </div>
                        </div>
                            <div class="form-group" style="width:900px;">
                                <label class="col-md-3 control-label" style="margin-left:-48px;">订单详情</label>
                                <div style="float:left;margin-left:180px">
                                    <foreach name="infos" item="vo">
                                        <div class="col-md-9" style="margin-top:20px;width:800px">
                                            食物名称:　<input type="text" value="{$vo['name']}" name="name" disabled="disabled">
                                            个数:　<input type="text" value="{$vo['number']}" name="number" disabled="disabled">
                                        </div>
                                    </foreach>
                                </div>
                            </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label" >备注</label>
                            <div class="col-md-9">
                                <input type="text" class="form-control" value="{$info['ask']}" name="ask" id="ask" disabled="disabled">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">订单状态</label>
                            <div class="col-md-9">
                                <select class="form-control" name="status">
                                        <option value="0" <if condition="$info['status'] eq 0">selected</if>>已提交订单</option>
                                        <option value="1" <if condition="$info['status'] eq 1">selected</if>>正在配送</option>
                                        <option value="3" <if condition="$info['status'] eq 3">selected</if>>待评价</option>
                                        <option value="4" <if condition="$info['status'] eq 4">selected</if>>已评价</option>
                                        <option value="5" <if condition="$info['status'] eq 5">selected</if>>取消订单</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                           <div class="form-actions">
                                <div class="col-md-offset-3 col-md-9">
                                    <button type="submit" class="btn btn-primary">修改</button>&nbsp;
                                    <button type="reset" class="btn btn-green">重置</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
        
</block>